package com.xbongbong.paas.feign;

import com.xbongbong.paas.pojo.dto.FormDataAddDTO;
import com.xbongbong.paas.pojo.dto.FormDataUpdateDTO;
import com.xbongbong.paas.pojo.dto.FormatExportDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 工单2.0导入远程调用
 *
 * @author LiZhikang
 * @date 2022/11/24 19:43
 */
@FeignClient(name = "xbb-work-order-web", contextId = "workOrderV2ImportFeignClient")
public interface WorkOrderV2ImportFeignClient {

    /**
     * 工单2.0导出
     *
     * @param formatExportDTO
     * @return
     */
    @RequestMapping(value = "/pro/v1/workOrderV2/feign/export/format", method = RequestMethod.POST)
    String exportFormat(@RequestBody FormatExportDTO formatExportDTO);

    /**
     * 工单2.0导入
     *
     * @param formDataAddDTO
     * @return
     */
    @RequestMapping(value = "/pro/v1/workOrderV2/common/add", method = RequestMethod.POST)
    String add(@RequestBody FormDataAddDTO formDataAddDTO);

    /**
     * 工单2.0更新导入
     *
     * @param formDataUpdateDTO
     * @return
     */
    @RequestMapping(value = "/pro/v1/workOrderV2/common/update", method = RequestMethod.POST)
    String update(@RequestBody FormDataUpdateDTO formDataUpdateDTO);
}
